package br.com.exemplo.swing;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class ExemploJTextField {

	public static void main(String[] args) {
		JFrame janela = new JFrame("Titulo da Janela");
		JPanel painel = new JPanel();
		janela.add(painel);

		JTextField textField = new JTextField(10);
		painel.add(textField);
		
		janela.setSize(325, 100);
		janela.setVisible(true);
		janela.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}
}
